package com.ruoyi.mall.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户优惠券对象 mall_member_coupon
 *
 * @author ruoyi
 * @date 2022-02-22
 */
public class MallMemberCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户优惠券id */
    private Long id;

    /** 优惠券id */
    @Excel(name = "优惠券id")
    private Long couponId;

    /** 领取人昵称 */
    @Excel(name = "领取人昵称")
    private String userName;

    /** 领取时间 */
    @Excel(name = "领取时间")
    private String createAt;

    /** 是否使用：0未使用 1已使用 */
    @Excel(name = "是否使用：0未使用 1已使用")
    private String isUsed;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String couponName;

    /** 领取的优惠券面额 */
    @Excel(name = "领取的优惠券面额")
    private BigDecimal price;

    /** 优惠券类型 */
    @Excel(name = "优惠券类型")
    private String couponType;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date usedAt;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setCreateAt(String createAt)
    {
        this.createAt = createAt;
    }

    public String getCreateAt()
    {
        return createAt;
    }
    public void setIsUsed(String isUsed)
    {
        this.isUsed = isUsed;
    }

    public String getIsUsed()
    {
        return isUsed;
    }
    public void setCouponName(String couponName)
    {
        this.couponName = couponName;
    }

    public String getCouponName()
    {
        return couponName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setCouponType(String couponType)
    {
        this.couponType = couponType;
    }

    public String getCouponType()
    {
        return couponType;
    }
    public void setUsedAt(Date usedAt)
    {
        this.usedAt = usedAt;
    }

    public Date getUsedAt()
    {
        return usedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("id", getId())
                .append("couponId", getCouponId())
                .append("userName", getUserName())
                .append("createAt", getCreateAt())
                .append("isUsed", getIsUsed())
                .append("couponName", getCouponName())
                .append("price", getPrice())
                .append("couponType", getCouponType())
                .append("usedAt", getUsedAt())
                .toString();
    }
}
